<?php
/********************************************************************************
 * File: about.php
 * Desc: Site about page.  Customize to your liking.  You aren't requried to 
 *       leave the link back to flogr, but I'd appreciate it if you did.  :)
 * 
 * Change   Date        By          Description
 * 1        05/13/2007  mcarruth    Created
 ********************************************************************************/
 ?>

<?php require_once("inc/header.php"); ?>

   <div id='page_header'>
      <span id='page_title'>about</span>
      <span id='page_nav'>
      </span>
   </div>
   <div id='page'>
      <div id='thumbnail_container'>
      <?php if ($config_userInfo) { ?>
         <table>
            <tr>
               <td><h3>User</h3></td>
               <td><?php echo $config_userInfo[realname]; ?></td>
            </tr>
            <tr>
               <td><h3>Location</h3></td>
               <td><?php echo $config_userInfo[location]; ?></td>
            </tr>
            <tr>
            <tr>
               <td><h3>Photos URL</h3></td>
               <td><a href="<?php echo $config_userInfo[photosurl]; ?>"><?php echo $config_userInfo[photosurl]; ?></a></td>
            </tr>
            <tr>
               <td><h3>Profile URL</h3></td>
               <td><a href="<?php echo $config_userInfo[profileurl]; ?>"><?php echo $config_userInfo[profileurl]; ?></a></td>
            </tr>
            <tr>
               <td><h3>First Photograph</h3></td>
               <td><?php echo date("F j, Y", $config_userInfo[photos][firstdate]); ?></td>
            </tr>
            <tr>
               <td><h3>Photographs Taken</h3></td>
               <td><?php echo $config_userInfo[photos][count]; ?></td>
            </tr>
            <?php 
            $userGroups = $f->people_getPublicGroups($config_flickrUserId);
            if ($userGroups) {            
               echo "<tr><td><h3>Memberships</h3></td><td>";           
               foreach ($userGroups as $group) {
                  echo $group[name] . "<br/>";
               }
               echo "</td></tr>";
            }
            ?>
         </table>
      <?php } ?>
      <?php if ($config_groupInfo) { ?>
         <table>
            <tr>
               <td><h3>Group</h3></td>
               <td><?php echo $config_groupInfo[name]; ?></td>
            </tr>
            <tr>
               <td><h3>Description</h3></td>
               <td><?php echo $config_groupInfo[description]; ?></td>
            </tr>
            <tr>
            <tr>
               <td><h3>Members</h3></td>
               <td><?php echo $config_groupInfo[members]; ?></td>
            </tr>
         </table>
      <?php } ?>
      </div>
   </div>

<?php require_once("inc/footer.php"); ?>
